package Entities;

import java.io.Serializable;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
@Entity
@DiscriminatorValue("COCINA")
public class Entity_Cocina extends Entity_Area implements Serializable{
	private static final long serialVersionUID = 1L;
	@Column
	private float horasPreparacion;
	@OneToMany(cascade = CascadeType.ALL)
	@JoinColumn(name = "id_cocina")
	private List<Entity_Tarea> tareas;
	
	public float getHorasPreparacion() {
		return horasPreparacion;
	}

	public void setHorasPreparacion(float horasPreparacion) {
		this.horasPreparacion = horasPreparacion;
	}

	public List<Entity_Tarea> getTareas() {
		return tareas;
	}

	public void setTareas(List<Entity_Tarea> tareas) {
		this.tareas = tareas;
	}

	


}
